ci: add CI pipeline & merge gates (SEC-36)#7
Merged
Conversation
Add .github/workflows/ci.yml with four jobs matching the contract gates:
- lint ruff check framework/ (lint + import order) and mypy framework/
(core framework; TUI suppressed via a pyproject override)
- test pytest across the Python 3.10-3.13 matrix
- smoke paramify list/catalog/ksi + describe over every fetcher
- secrets gitleaks OSS binary (v8.30.1), full-history scan via `gitleaks git`
Add tests/test_contracts.py: parametrized JSON-Schema validation of every
fetcher.yaml and _categories/*.yaml, plus discovery-doesn't-raise and
unique-name invariants (+122 tests).
Configure tooling in pyproject.toml: [tool.ruff] gates framework/ only
(ruff format not gated yet); [tool.mypy] runs on the core framework with a
framework.tui.* ignore_errors override; ruff + mypy added to dev/all extras.
Clear the new gates with behavior-preserving fixes: 3 ruff autofixes (unused
imports in the TUI, import sort in executor.py) and core-framework mypy fixes
(config_loader signature, two Optional handlings in api.py, and renaming reused
`except ... as e` loop variables to `err` in cli.py).
Branch protection (CI-green + review before main) is a repo setting, best
applied on the public repo (SEC-30); not included here.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add .github/workflows/ci.yml with four jobs matching the contract gates:
(core framework; TUI suppressed via a pyproject override)
gitleaks gitAdd tests/test_contracts.py: parametrized JSON-Schema validation of every fetcher.yaml and _categories/*.yaml, plus discovery-doesn't-raise and unique-name invariants (+122 tests).
Configure tooling in pyproject.toml: [tool.ruff] gates framework/ only (ruff format not gated yet); [tool.mypy] runs on the core framework with a framework.tui.* ignore_errors override; ruff + mypy added to dev/all extras.
Clear the new gates with behavior-preserving fixes: 3 ruff autofixes (unused imports in the TUI, import sort in executor.py) and core-framework mypy fixes (config_loader signature, two Optional handlings in api.py, and renaming reused
except ... as eloop variables toerrin cli.py).Branch protection (CI-green + review before main) is a repo setting, best applied on the public repo (SEC-30); not included here.